<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<link rel="stylesheet" href="/css/layui.css">
<link rel="stylesheet" href="/css/list.css"></link>
<body>
<div class="containner">
    <div class="layui-row">
        <div class="layui-col-xs12">
            <table class="layui-table" lay-even>
                <tr>
                    <th>id</th>
                    <th>name</th>
                    <th>stunumber</th>
                    <th>age</th>
                    <th>gerder</th>
                    <th>password</th>
                </tr>
                <tr th:each="student:${list}">
                    <td th:text="${student.id}"></td>
                    <td th:text="${student.name}"></td>
                    <td th:text="${student.stunumber}"></td>
                    <td th:text="${student.age}"></td>
                    <td th:text="${student.gender=='男'?'男生':'女生'}"></td>
                    <td th:text="${student.password}"></td>
                </tr>
            </table>
        </div>
    </div>
</div>

<script src="/js/layui.js"></script>
</body>
</html>